package net.homeip.mmhg.events;

import net.homeip.mmhg.game.Position;

/**
 * Simple implementation of event referring to a position. 
 * 
 * @author ilya gerasimov
 */
public class PositionEvent extends BaseEvent {
	
	private Position position;
	
	/**
	 * Constructs new event base on type and position.
	 * 
	 * @param type Type of new event.
	 * @param position Position fired event.
	 */
	public PositionEvent(EventType type, Position position) {
		super(type);
		this.position = position;
	}
	
	public Position getPosition() {
		return position;
	}

}
